<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<!-- saved from url=(0047)http://202.116.174.108:8080/reader/book_lst.php -->
<script type="text/javascript">
    function success(cc){
      
        alert("续借成功"); 
        window.location.href="../renewbook/renewone.action?book_id="+cc;
    }
    
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>图书借阅系统</title>
<link type="text/css" rel="stylesheet"
	href="../resources/currentBorrow/style.css">
<link type="text/css" rel="stylesheet"
	href="../resources/currentBorrow/mylib.css">
<link type="text/css" rel="stylesheet"
	href="../resources/currentBorrow/jquery-ui-1.8.13.custom.css">
<script type="text/javascript"
	src="../resources/currentBorrow/jquery.1.7.1.min.js.下载"></script>
<script type="text/javascript"
	src="../resources/currentBorrow/jquery-ui-1.8.13.custom.min.js.下载"></script>
<script type="text/javascript"
	src="../resources/currentBorrow/highlighter.js.下载"></script>
</head>
<body>
	<div id="header_opac">
		<h1 class="header_opac_img">
			<div class="header_opac_logo">
				图书借阅系统<br>
				<p>Online Book Borrowing System</p>

			</div>
		</h1>
		<div class="header_right header_right_top">
			<p class="header_right_font"></p>
			<p style="margin-top: 60px;" class="header_right_font">
				<font color="blue">${user.name }</font> <strong><a
					href="../user/logout.action" style="color: #ff0000;">注销</a></strong>
			</p>
		</div>
	</div>
	<div id="menubar">
		<ul id="menu_top">
			<li><a href="../user/toquery2.action" target="_self">书目检索</a></li>
			<li><a class="menu_top_on" style="color: #6C5B23;"
				href="../books/mylibrary.action">我的图书馆</a></li>
			<div class="clear"></div>
		</ul>
	</div>
	<div id="submenu">
		<div class="clear"></div>
	</div>

	<script language="JavaScript" type="text/javascript">
	$(function(){
		$( "#dialog:ui-dialog" ).dialog( "destroy" );
	});
</script>

	<div style="width: 1360px; height: 420px; margin: 0 5px 0 0"
		id="mainbox">
		<div id="container">
			<div id="navsidebar">
				<ul id="nav_mylib">
					<li><a href="../books/mylibrary.action">证件信息</a></li>
					<li id="nav_mylibhome"><a
						href="../borrow/borrowing.action?id=${user.id }">当前借阅</a></li>
					<li><a
						href="../borrow/borrow_his_levelup.action?id=${user.id }">借阅历史</a></li>
					<li><a href="../user/appointmentInfo.action?id=${user.id }">预约信息</a></li>
					<li><a href="../bookshelf/query.action?id=${user.id }">我的书架</a></li>
				</ul>
			</div>

			<div id="mylib_content">

				<p style="text-align: center; font-size: 14px; color: #F00;"></p>
				<h2>当前借阅</h2>


				<table width="100%" border="0" cellpadding="5" cellspacing="1"
					bgcolor="#CCCCCC" class="table_line">
					<tbody>
						<tr>
							<td class="greytext">ISBN</td>
							<td class="greytext">语言</td>
							<td class="greytext">书名/作者</td>
							<td class="greytext">标签</td>
							<td class="greytext">借阅日期</td>
							<td class="greytext">应还日期</td>
							<td class="greytext">索书号</td>
							<td class="greytext">操作</td>
						</tr>

						<c:forEach var="list" items="${borrowbooks}">
							<tr>

								<td class="whitetext" width="10%">${list.isbn}</td>
								<td class="whitetext" width="10%"><c:if
										test="${list.language=='chi'}">
                            	         中文
                            	</c:if> <c:if test="${list.language=='eng'}">
                            	英文
                            	</c:if></td>
								<td class="whitetext" width="15%"><a class="blue"
									href="../books/bookitem.action?booksModel.callno=${list.callno}">${list.bookName }</a>/
									${list.author} 编著</td>
								<td class="whitetext" width="15%">${list.tag}</td>

								<td class="whitetext" width="13%">${list.dateToString}</td>
								<td class="whitetext" width="13%"><font color="red">${list.deadlineToString}</font></td>
								<td width="13%" class="whitetext">${list.callno}</td>


								<c:if test="${list.renewable==false}">
									<td width="5%" height="35" class="whitetext">
										<div id="1">
											<input title="renew" class="btn btn-success" type="button"
												value="续借" onclick="success()" disabled="">
										</div>
										<div id="A1578063"></div>
									</td>
								</c:if>
								<c:if test="${list.renewable==true}">
									<td width="5%" height="35" class="whitetext">
										<div id="1">
											<input title="renew" class="btn btn-success" type="button"
												value="续借" onclick="success('${list.id}')">
										</div>
										<div id="A1578063"></div>
									</td>
								</c:if>




								<!-- <td>${list.isbn}</td>
					<td>${list.language}</td>
					<td>${list.bookName}</td>
					<td>${list.author}</td>
					<td>${list.tag}</td> 
					<td>${list.lendTime}</td>
					<td>${list.deadline}</td>
					<td>${list.callno}</td> -->
							</tr>
						</c:forEach>
					</tbody>
				</table>

			</div>
			<div id="dialog-form" title="续借验证码" style="display: none;">
				<table width="95%" border="0" cellpadding="3" cellspacing="1">
					<tbody>
						<tr>
							<td align="right">验证码：</td>
							<td align="left"><input id="captcha" class="input"
								name="captcha" type="text" size="20" style="width: 150px">
							</td>
						</tr>
						<tr>
							<td align="right"></td>
							<td align="left">请输入下面显示的内容<br>
							<img id="img" src="../resources/currentBorrow/captcha.php"></td>
						</tr>
					</tbody>
				</table>
			</div>

			<div class="clear"></div>
		</div>

		<script type="text/javascript">
<!--
function getInLib(barcode,check,num){ 
		$( "#dialog-form" ).dialog({
			autoOpen: false,
			modal: true,
			buttons: {
	        "确定": function() {
	          $(this).dialog("close");
	          $("#" + num).load('ajax_renew.php?bar_code=' + barcode + "&check=" + check + "&captcha=" + $("#captcha").val() + "&time=" + new Date().getTime());
	        }
	      } 
		});
		$("#dialog-form").dialog("open");
		
}
-->
</script>
</body>
</html>